package com.ktwlsoft.archivemanage.domain.dao.repository.businessInspect;

import com.ktwlsoft.archivemanage.domain.dao.entity.businessInspect.InspectSubject;
import com.ktwlsoft.archivemanage.domain.dao.entity.businessInspect.SelfInspectSubject;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * self_inspect_subject--自查--业务指导题目-Mapper层接口
 *
 * @author zhuhe
 * @date 2023/06/25
 */
@Mapper
public interface SelfInspectSubjectMapper extends BaseMapper<SelfInspectSubject>{

    /**
     * 查询列表 on 2019-11-12 15:00:45
     * @param inspectSubject inspectSubject
     * @return List<InspectSubject>
     */
    List<SelfInspectSubject> findList(SelfInspectSubject inspectSubject);


    /**
     * 根据id查询信息 on 2019-11-12 15:00:45
     * @param id id
     * @return InspectSubject
     */
    SelfInspectSubject getById(Long id);

    /**
     * 根据业务检查id查询信息 on 2019/11/13 12:00
     *
     * @param inspectId inspectId
     * @return List<InspectSubject>
     */
    List<SelfInspectSubject> getByInspectId(Long inspectId);

    /**
     * 根据id删除信息 on 2019-11-12 15:00:45
     * @param id id
     * @return int
     */
    int deleteById(Long id);

    /**
     * 根据id集合批量删除信息 on 2019-11-12 15:00:45
     * @param ids ids
     * @return int
     */
    int deleteByIds(List<Long> ids);

    /**
     * 插入 on 2019-11-12 15:00:45
     * @param inspectSubject inspectSubject
     * @return int
     */
    int insert(SelfInspectSubject inspectSubject);

    /**
     * 批量插入 on 2019-04-23 10:57:02
     * @param list list
     * @return int
     */
    int manyInsert(List<SelfInspectSubject> list);

    /**
     * 更新 on 2019-11-12 15:00:45
     * @param inspectSubject inspectSubject
     * @return int
     */
    int update(SelfInspectSubject inspectSubject);
}
